package com.blrs.service.procure.procure.impl;

import java.util.List;

import com.blrs.service.procure.procure.IPurchasingChangeRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.blrs.mapper.PurchasingChangeRecordMapper;
import com.blrs.domain.PurchasingChangeRecord;

/**
 * 采购管理变更记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-18
 */
@Service
public class PurchasingChangeRecordServiceImpl implements IPurchasingChangeRecordService
{
    @Autowired
    private PurchasingChangeRecordMapper purchasingChangeRecordMapper;

    /**
     * 查询采购管理变更记录
     * 
     * @param id 采购管理变更记录主键
     * @return 采购管理变更记录
     */
    @Override
    public PurchasingChangeRecord selectPurchasingChangeRecordById(String id)
    {
        return purchasingChangeRecordMapper.selectPurchasingChangeRecordById(id);
    }

    /**
     * 查询采购管理变更记录列表
     * 
     * @param purchasingChangeRecord 采购管理变更记录
     * @return 采购管理变更记录
     */
    @Override
    public List<PurchasingChangeRecord> selectPurchasingChangeRecordList(PurchasingChangeRecord purchasingChangeRecord)
    {
        return purchasingChangeRecordMapper.selectPurchasingChangeRecordList(purchasingChangeRecord);
    }

    /**
     * 新增采购管理变更记录
     * 
     * @param purchasingChangeRecord 采购管理变更记录
     * @return 结果
     */
    @Override
    public int insertPurchasingChangeRecord(PurchasingChangeRecord purchasingChangeRecord)
    {
        return purchasingChangeRecordMapper.insertPurchasingChangeRecord(purchasingChangeRecord);
    }

    /**
     * 修改采购管理变更记录
     * 
     * @param purchasingChangeRecord 采购管理变更记录
     * @return 结果
     */
    @Override
    public int updatePurchasingChangeRecord(PurchasingChangeRecord purchasingChangeRecord)
    {
        return purchasingChangeRecordMapper.updatePurchasingChangeRecord(purchasingChangeRecord);
    }

    /**
     * 批量删除采购管理变更记录
     * 
     * @param ids 需要删除的采购管理变更记录主键
     * @return 结果
     */
    @Override
    public int deletePurchasingChangeRecordByIds(String[] ids)
    {
        return purchasingChangeRecordMapper.deletePurchasingChangeRecordByIds(ids);
    }

    /**
     * 删除采购管理变更记录信息
     * 
     * @param id 采购管理变更记录主键
     * @return 结果
     */
    @Override
    public int deletePurchasingChangeRecordById(String id)
    {
        return purchasingChangeRecordMapper.deletePurchasingChangeRecordById(id);
    }
}
